/**
 * 查询车道 api
 * @author xiaoxujs
 */

import { basicIp, newHttpService } from "../../api/http"
import { IBaseLaneAddParams, IBaseLaneEditParams, IBaseScreenAddParams, IBaseScreenEditParams } from "../../type/chedaoweihu";

//   车道维护列表
export const getBaseLaneList = () => {
    const url = basicIp + '/base/lane/list';
    return newHttpService.getData(url)
}

//  车道维护 添加
export const postBaseLaneAdd = (data: IBaseLaneAddParams) => {
    const url = basicIp + '/base/lane/add';
    return newHttpService.postData(url, data)
}
// 车道维护 修改
export const postBaseLaneEdit = (data: IBaseLaneEditParams) => {
    const url = basicIp + '/base/lane/edit';
    return newHttpService.postData(url, data)
}

//   户外屏幕维护
export const getBaseScreenList = () => {
    const url = basicIp + '/base/screen/list';
    return newHttpService.getData(url)
}
// 添加户外屏幕
export const postBaseScreenAdd = (data: IBaseScreenAddParams) => {
    const url = basicIp + '/base/screen/add';
    return newHttpService.postData(url, data)
}
// 修改户外屏幕
export const postBaseScreenEdit = (data: IBaseScreenEditParams) => {
    const url = basicIp + '/base/screen/edit';
    return newHttpService.postData(url, data)
}
